﻿import request from '/@/utils/request';
enum Api {
  AddBoardBase = '/api/boardBase/add',
  DeleteBoardBase = '/api/boardBase/delete',
  UpdateBoardBase = '/api/boardBase/update',
  PageBoardBase = '/api/boardBase/page',
  DetailBoardBase = '/api/boardBase/detail',
  GetBoardDeviceBoardDeviceDropdown = '/api/boardBase/BoardDeviceBoardDeviceDropdown',
  getRouteBoards='/api/boardBase/getRouteBoards',
}

// 增加盲板信息
export const addBoardBase = (params?: any) =>
	request({
		url: Api.AddBoardBase,
		method: 'post',
		data: params,
	});

// 删除盲板信息
export const deleteBoardBase = (params?: any) => 
	request({
			url: Api.DeleteBoardBase,
			method: 'post',
			data: params,
		});

// 编辑盲板信息
export const updateBoardBase = (params?: any) => 
	request({
			url: Api.UpdateBoardBase,
			method: 'post',
			data: params,
		});

// 分页查询盲板信息
export const pageBoardBase = (params?: any) => 
	request({
			url: Api.PageBoardBase,
			method: 'post',
			data: params,
		});

// 详情盲板信息
export const detailBoardBase = (id: any) => 
	request({
			url: Api.DetailBoardBase,
			method: 'get',
			data: { id },
		});

export const getBoardDeviceBoardDeviceDropdown = () =>
		request({
		url: Api.GetBoardDeviceBoardDeviceDropdown,
		method: 'get'
		});
export const getRouteBoards = (params?: any) =>
		request({
		url: Api.getRouteBoards,
		method: 'post',
		data:params
		});

